package xyz.yang.toodles;

/**
 * @author Xuehong Yang
 * @since 1.0
 */

@SuppressWarnings("unused")
public interface EventPublisher {
    void register(Object obj);

    void unregister(Object obj);

    void publish(Object obj);

    static void raise(Object obj) {
        ServiceLocator.service(EventPublisher.class).publish(obj);
    }
}
